package org.neuedu.chapter02_0609;

public class VariabelDemo15 {
    public static void main(String[] args) {
        // 赋值运算符
        int age = 10;
        // +=,-=,*=,/=,%=
        age += 2; // age = age + 2;
        age -= 2; // age = age - 2;
        age *= 2; // age = age * 2;
        age /= 2; // age = age / 2;
        age %= 2; // age = age % 2;

        // += 的自动转换问题
        short num = 10;
        num += 10;
//        num = num + 10;
    }
}
